package com.wl.designpattern.interpreter;

import java.util.HashMap;
import java.util.Map;

/**
 * 创建环境角色
 *
 * Created by wangliang on 2021/2/27.
 */
public class Context {
    Map<String, Object> mMap = new HashMap<>();//使用HashMap来保存结果

    public void put(String key, int value) {
        mMap.put(key, value);
    }

    public int get(String key) {
        return (int) mMap.get(key);
    }
}
